package net.zjitc.doubao_community_backed.exception;/**
 * @Author 董熠涛
 * @Date 2025/6/16  19:11
 */

import net.zjitc.doubao_community_backed.api.IErrorCode;

/**
 * @Author:董熠涛
 * @ 2025/6/1619:11
 */
public class ApiAsserts {
    /**
     * 抛失败异常
     *
     * @param message 说明
     */
    public static void fail(String message) {
        throw new ApiException(message);
    }

    /**
     * 抛失败异常
     *
     * @param errorCode 状态码
     */
    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
